﻿@model AuditModel.Archive
           
<fieldset>
        <legend>@AuditResources.Archive.ObjectName@AuditResources.Archive.ID<text>: </text>@Model.ID</legend>
            <div class="display-label">
                @AuditResources.Archive.TeacherName
            </div>
            <div class="display-field">
                @Model.TeacherName            
            </div>
            <div class="display-label">
                @AuditResources.Archive.SchoolName
            </div>
            <div class="display-field">
                @Model.SchoolName        
            </div>
            <div class="display-label">
                @AuditResources.Archive.ClassDate
            </div>
            <div class="display-field">
                @Model.ClassDate.Value.ToShortDateString()          
            </div>
            <p>
            @if (User.IsInRole("学科组组长"))
            {
            @Html.ActionLink(AuditResources.UI.Details, "ArchiveDetails", "SubjectAdmin", new { id = Model.ID }, new { @class = "button", target = "_blank" }) 
            }
            else if(User.IsInRole("评委"))
            {
            @Html.ActionLink(AuditResources.UI.Details, "ArchiveDetails", "PW", new { id = Model.ID }, new { @class = "button", target = "_blank" }) 
            }
             @Html.ActionLink("下载附件", "GetCompressedFilesByArchiveId", "DownloadManager", new { id = Model.ID }, new { @class = "button" }) 
            </p>
</fieldset>

